// 查询千分制详情
module.exports = app=>{
    const {STRING,INTEGER,DATE} = app.Sequelize;
    const  Thousandtwo = app.model.define('thousandtwo',{
        project:{
            type:STRING,
            allowNull: false,
            comment:'所属项目'
        },
        class:{
            type:STRING,
            allowNull: false,
            comment:'所属班级'
        },
        name:{
            type:STRING,
            allowNull: false,
            comment:'学生名字'
        },
        type:{
            type:STRING,
            allowNull: false,
            comment:'附加分类型'
        },
        number:{
            type:INTEGER,
            allowNull: false,
            comment:'分值'
        },
        date:{
            type:DATE,
            allowNull:false,
            comment:'日期'
        },
        rule:{
            type:STRING,
            allowNull: false,
            comment:'扣分缘由'
        },
        explain:{
            type:STRING,
            comment:'说明'
        },
        efficacy:{
            type:INTEGER,
            allowNull: false,
            comment:'效力'
        },
    })
    return Thousandtwo
}